﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BatchOrder.aspx.cs" Inherits="WMS6.Web.Outbound.BatchOrder"
    meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>BatchOrder</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/jquery.blockUI.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newBatchOrder()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "BatchOrder.aspx?from=" + escape(from);
            return false;
        } 
        function AddWaveDetail()
        {
        
        }
          function showAction()
		{	
			var pos = getElementPos("btnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}		
       function hiddenDiv()
		{
			var flag = document.getElementById("hiddenFlag").value
			if(flag == "1")
			{
				document.getElementById("actionDiv").style.display = "block";
				document.getElementById("hiddenFlag").value = '0';
			}
			else 
			{
				document.getElementById("actionDiv").style.display = "none";
			}

        }
        //显示 报表 DIV
        function showReport() {
            var pos = getElementPos("htmlbtnReport");
            document.getElementById("reportDiv").style.top = pos.y + 17;
            document.getElementById("reportDiv").style.left = pos.x;
            document.getElementById("hiddenReportFlag").value = '1';
        }


        //隐藏 报表 DIV    
        function hiddenReportDiv() {
            var flag = document.getElementById("hiddenReportFlag").value
            if (flag == "1") {
                document.getElementById("reportDiv").style.display = "block";
                document.getElementById("hiddenReportFlag").value = '0';
            }
            else {
                document.getElementById("reportDiv").style.display = "none";
            }
        }
        
        function EncaseNestingClick()
        {    
           $("#DivEncaseNesting").slideToggle();   
        }

        function popPrintPickList()
        {
            var OrderID = document.getElementById("hdnOrdersID").value;
            window.open('../Common/PrintReport.aspx?rtype=BATCHPRINTPICKLISTREPORT&orderID=' + escape(OrderID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }

        function popPrintMergePickList() {

            var OrderID = document.getElementById("txtWaveID").value;
            var DetailID = document.getElementById("hdnOrdersID").value;
            var Descr = document.getElementById('txtDescr').value;
            window.open('../Common/PrintReport.aspx?rtype=MERGEPRINTPICKLISTREPORT&orderID=' + escape(OrderID) + "&descr=" + Descr + "&detailID=" + DetailID, 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }

        function popPrinPickDivide() {

            var OrderID = document.getElementById("txtWaveID").value;
            var DetailID = document.getElementById("hdnOrdersID").value;
            var Descr = document.getElementById('txtDescr').value;
            window.open('../Common/PrintReport.aspx?rtype=PICKDIVIDEREPORT&orderID=' + escape(OrderID) + "&descr=" + escape(Descr) + "&detailID=" + DetailID, 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }

        function popPrinBatchShippingOrder() {

            var OrderID = document.getElementById("txtWaveID").value;
            var DetailID = document.getElementById("hdnOrdersID").value;
            var Descr = document.getElementById('txtDescr').value;
            window.open('../Common/PrintReport.aspx?rtype=BATCHSHIPPINGORDERREPORT&orderID=' + escape(OrderID) + "&descr=" + Descr + "&detailID=" + DetailID, 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }

        function popPrinBatchOutboundList() {

            var OrderID = document.getElementById("txtWaveID").value;
            var DetailID = document.getElementById("hdnOrdersID").value;
            var Descr = document.getElementById('txtDescr').value;
            window.open('../Common/PrintReport.aspx?rtype=BATCHOUTBOUNDLISTREPORT&orderID=' + escape(OrderID) + "&descr=" + Descr + "&detailID=" + DetailID, 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }

        function popPrintBatchPickAdvice() {
            var waveID = document.getElementById("txtWaveID").value;
            var DetailID = document.getElementById("hdnOrdersID").value;
            var Descr = document.getElementById('txtDescr').value;
            window.open('../Common/PrintReport.aspx?rtype=BatchPickAdviceReport&waveID=' + escape(waveID) + "&descr=" + Descr + "&detailID=" + DetailID, 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        
        function popOrder(orderid)
        {          
           FastPopModalWindow('../OutBound/Allocation.aspx?type=QUERY&ID=' + escape(orderid), 'dialogWidth=950px;dialogHeight=600px;center=yes;resizable=yes;status=no;');
        }
        function confirmMsg(code) {
            if (code == "F7300_001") 
            {
                if (confirm('<%=GetGlobalMsgResource("F7300_001") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }        if (code == "F7300_002") 
            {
                if (confirm('<%=GetGlobalMsgResource("F7300_002") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
        
            
        }
        
        function blockScreen()
		{
		    //锁屏
		    $.blockUI.defaults.message = GetBlockUIMsg();
            $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
            $.blockUI();
		}
    </script>

</head>
<body>
    <form id="F7031" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div id="div_top">
                    <table>
                        <tr>
                            <td valign="bottom">
                                <asp:Label ID="lblBatchOrder" runat="server" CssClass="label_header" Text="批量订单"
                                    meta:resourcekey="lblBatchOrder"></asp:Label>
                            </td>
                            <td>
                                <asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>"
                                    Enabled="False" OnClientClick="newBatchOrder();" meta:resourcekey="btnNew" />
                            </td>
                            <td>
                                <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"
                                    AccessKey="s" Enabled="False" OnClick="btnSave_Click" meta:resourcekey="btnSave" />
                            </td>
                            <td>
                                <asp:Button ID="btnDelete" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnDelete%>"
                                    AccessKey="d" OnClientClick="if(confirmMsg('F7300_001'))return true; else return false;"
                                    OnClick="btnDelete_Click" meta:resourcekey="btnDelete" />
                            </td>
                            <td>
                                <asp:Button ID="btnRefresh" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnRefresh%>"
                                    AccessKey="d" OnClick="btnRefresh_Click" Enabled="False" />
                            </td>
                            <td>
                                <input id="btnAction" type="button" runat="server" value="<%$Resources:ButtonResource,btnAction%>"
                                    class="button" onclick="showAction();" />
                            </td>
                            <td>
                                <input id="htmlbtnReport" type="button" runat="server" value="<%$Resources:ButtonResource,btnReport%>"
                                    class="button" onclick="showReport();" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,3)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">常规</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL2">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,3)"
                        id="divM2">
                        <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">发货订单明细</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR2">
                        </div>
                    </div>
                   <%-- <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL3">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,3)"
                        id="divM3">
                        <asp:Label ID="one3" CssClass="navigationlabel" runat="server" meta:resourcekey="one3">容器</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR3">
                        </div>
                    </div>--%>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblWaveID" runat="server" CssClass="label" Text="批量订单编号" meta:resourcekey="lblWaveID"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" meta:resourcekey="lblStatus"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblCreatedDate" runat="server" CssClass="label" Text="创建时间"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtWaveID" runat="server" CssClass="textbox" meta:resourcekey="txtWaveID"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlStatus" Enabled="false" runat="server" CssClass="mediumselectbox">
                                    </asp:DropDownList>
                                </td>
                                <td width="180">
                                    <asp:TextBox ID="txtCreatedDate" runat="server" CssClass="textbox" Enabled="false"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <asp:Label ID="lblDescr" runat="server" CssClass="label" Text="描述" meta:resourcekey="lblDescr"></asp:Label>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <asp:TextBox ID="txtDescr" runat="server" CssClass="largetextbox" meta:resourcekey="txtDescr"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblWaveType" runat="server" CssClass="label" Text="波次类型"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblTotalOrderQty" runat="server" CssClass="label" Text="订单总数"></asp:Label>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:DropDownList ID="DropDownList1" Enabled="true" runat="server" CssClass="mediumselectbox">
                                        <asp:ListItem></asp:ListItem>
                                        <asp:ListItem>普通</asp:ListItem>
                                        <asp:ListItem>单品</asp:ListItem>
                                        <asp:ListItem>多品</asp:ListItem>
                                        <asp:ListItem>秒杀</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTotalOrderQty" runat="server" CssClass="textbox"></asp:TextBox>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblOrderCategoryTotalQty" runat="server" CssClass="label" Text="订单品种总数"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblOrderSkuTotalQty" runat="server" CssClass="label" Text="订单货品总数"></asp:Label>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtOrderCategoryTotalQty" runat="server" CssClass="textbox"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtOrderSkuTotalQty" runat="server" CssClass="textbox"></asp:TextBox>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                                <td>
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_2" style="display: none; overflow-x: auto; overflow-y: hidden;">
                        <table width="1000px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <div style="margin-top: 10px;">
                                        <asp:Button ID="btnSearchAndAddDetail" runat="server" CssClass="button" Enabled="False"
                                            Text="<%$Resources:ButtonResource,btnSearchAndAddDetail%>" OnClick="btnSearchAndAddDetail_Click"
                                            AccessKey="n" OnClientClick="javascript:if(document.getElementById('hdnWaveID').value == ''){confirmMsg('F7300_002');}" />
                                        <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnAddDetail%>"
                                            OnClick="btnAddDetail_Click" Enabled="False" AccessKey="n" OnClientClick="javascript:if(document.getElementById('hdnWaveID').value == ''){confirmMsg('F7300_002');}" />
                                        <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Enabled="False"
                                            Text="<%$Resources:ButtonResource,btnDeleteDetail%>" AccessKey="s" OnClick="btnDeleteDetail_Click" />
                                    </div>
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div>
                                        <asp:GridView ID="gvBatchOrderDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                            AllowPaging="True" OnInit="gvBatchOrderDetail_Init" CssClass="gridview" OnRowDataBound="gvBatchOrderDetail_RowDataBound"
                                            DataKeyNames="OrderID,Status,OwnerID" Width="1400px" OnPageIndexChanging="gvBatchOrderDetail_PageIndexChanging"
                                            OnSorting="gvBatchOrderDetail_Sorting" meta:resourcekey="gvBatchOrderDetail">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:TemplateField meta:resourcekey="TemplateField">
                                                    <HeaderTemplate>
                                                        <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('7031','gvBatchOrderDetail');"
                                                            onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvBatchOrderDetail');"
                                                            meta:resourcekey="CheckBox1" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvBatchOrderDetail');"
                                                            meta:resourcekey="CheckBox2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="订单号" HeaderText="订单号" SortExpression="OrderID">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblOrderID" runat="server" Text='<%# Eval("OrderID") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="状态" HeaderText="状态" SortExpression="StatusD">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblStaus" runat="server" Text='<%# Eval("StatusD") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <%--  <asp:BoundField DataField="StatusD" HeaderText="状态" FooterText="状态" 
                                             SortExpression="StatusD" meta:resourcekey="StatusD">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>--%>
                                                <asp:BoundField DataField="OwnerID" HeaderText="货主代码" FooterText="货主代码" SortExpression="OwnerID"
                                                    meta:resourcekey="OwnerID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Priority" HeaderText="优先级" FooterText="优先级" SortExpression="Priority"
                                                    meta:resourcekey="Priority">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TypeD" HeaderText="类型" FooterText="类型" SortExpression="TypeD"
                                                    meta:resourcekey="TypeD">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ConsigneeID" HeaderText="客户代码" FooterText="客户代码" SortExpression="ConsigneeID"
                                                    meta:resourcekey="ConsigneeID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="订单日期" HeaderText="订单日期" SortExpression="OrderDate"
                                                    meta:resourcekey="OrderDate">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblOrderDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("OrderDate").ToString()) %>'
                                                            meta:resourcekey="lblOrderDate"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="要求发货日期" HeaderText="要求发货日期" SortExpression="RequestedShipDate"
                                                    meta:resourcekey="RequestedShipDate">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblRequestedShipDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("RequestedShipDate").ToString()) %>'
                                                            meta:resourcekey="lblRequestedShipDate"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="Door" HeaderText="门" FooterText="门" SortExpression="Door"
                                                    meta:resourcekey="Door">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Route" HeaderText="线路" FooterText="线路" SortExpression="Route"
                                                    meta:resourcekey="Route">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Stop" HeaderText="站点" FooterText="站点" SortExpression="Stop"
                                                    meta:resourcekey="Stop">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr style="height: 30px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_3" style="display: none; overflow-x: auto; overflow-y: hidden;">
                        <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:Button ID="btnEncaseAddDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnEncaseAddDetail%>"
                                                    OnClick="btnAddContainerDetail_Click"  />
                                            </td>
                                            <td>
                                                <asp:Button ID="btnEncaseDeleteDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnEncaseDeleteDetail%>"
                                                    OnClick="btnDeleteContainerDetail_Click" />
                                            </td>
                                            <td>
                                                <asp:Button ID="btnEncaseClose" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnEncaseClose%>"
                                                     />
                                            </td>
                                            <td>
                                                <div style="display: block;">
                                                    <asp:Button ID="btnEncaseNesting" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnEncaseNesting%>"
                                                        OnClientClick="EncaseNestingClick(); return false;" /></div>
                                                <div id="DivEncaseNesting" style="position: absolute; display: none;">
                                                    <table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td height="30" background="../Images/DivLocQuery_01.gif">
                                                                <table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td valign="bottom">
                                                                            <span class="warehoustitle">嵌套容器</span>
                                                                        </td>
                                                                        <td width="16" class="close" onclick="EncaseNestingClick()">
                                                                            &nbsp;
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td background="../Images/DivLocQuery_02.gif">
                                                                <table width="292" border="0" align="center" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td>
                                                                            <table width="100%" align="center" cellpadding="0" cellspacing="0">
                                                                                <tr>
                                                                                    <td height="10">
                                                                                        &nbsp;
                                                                                    </td>
                                                                                    <td height="10">
                                                                                        &nbsp;
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center" class="areaname" style="display: block; margin-left: 10px; margin-top: 10px;">
                                                                                        嵌套容器：
                                                                                    </td>
                                                                                    <td style="display: block; margin-left: 10px; margin-top: 10px;">
                                                                                        <asp:DropDownList ID="ddlEncaseForm" runat="server" CssClass="mediumselectbox" AutoPostBack="True"
                                                                                            OnTextChanged="ddlEncaseForm_OnTextChanged" meta:resourcekey="ddlEncaseForm">
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td height="10">
                                                                                        &nbsp;
                                                                                    </td>
                                                                                    <td height="10">
                                                                                        &nbsp;
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center" class="areaname" style="display: block; margin-left: 10px; margin-top: 10px;">
                                                                                        目标容器：
                                                                                    </td>
                                                                                    <td style="display: block; margin-left: 10px; margin-top: 10px;">
                                                                                        <asp:DropDownList ID="ddlEncaseTo" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlEncaseTo">
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="10">
                                                                            <div style="border-top: 1px dashed #cccccc; height: 1px; overflow: hidden">
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="center">
                                                                            <input id="Image1" type="image" src="../Images/save.gif" runat="server" onserverclick="Encase_Click">
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="10" background="../Images/DivLocQuery_03.gif">
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </td>
                                            <td>
                                                <asp:Button ID="btnEncasePrint" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnEncasePrint%>"
                                                     />
                                            </td>
                                            <td>
                                                <asp:Button ID="btnImportData" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnImportData%>"
                                                    />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div>
                                        <asp:GridView ID="gvdShipmentContainer" runat="server" AutoGenerateColumns="False"
                                            AllowSorting="True" CssClass="gridview" Width="1000px" DataKeyNames="InternalContainerID,TotalQty,ContainerID"
                                            AllowPaging="True" OnRowDataBound="gvdShipmentContainer_RowDataBound" OnInit="gvdShipmentContainer_Init"
                                             OnSorting="gvdShipmentContainer_Sorting"
                                            meta:resourcekey="gvdShipmentContainer">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                                </asp:BoundField>
                                                <asp:TemplateField meta:resourcekey="TemplateFieldResource9">
                                                    <HeaderTemplate>
                                                        <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('7061','gvdShipmentContainer');"
                                                            onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvdShipmentContainer');"
                                                            meta:resourcekey="CheckBox1Resource2" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelectResource2" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvdShipmentContainer');"
                                                            meta:resourcekey="CheckBox2Resource2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="容器号" FooterText="容器号" SortExpression="ContainerID"
                                                    meta:resourcekey="ContainerID">
                                                    <ItemTemplate>
                                                        <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("ContainerID") %>' NavigateUrl='<%# FormatUrl("~/OutBound/EncaseMent.aspx?from=list&ContainerID={0}&WaveID={1}&CType={2}",Eval("ContainerID").ToString(),this.hdnWaveID.Value,Eval("ContainerType").ToString()) %>'
                                                            Target="_self" CssClass="hyperlink" meta:resourcekey="HyperLink1"></asp:HyperLink>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="ContainerType" HeaderText="容器类型" FooterText="容器类型" meta:resourcekey="ContainerType">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" SortExpression="SkuID"
                                                    meta:resourcekey="SkuID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="数量" HeaderText="数量" SortExpression="TotalQty" meta:resourcekey="TotalQty">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQty" runat="server" Text='<%# GetPreferenceDigit(Eval("TotalQty").ToString()) %>'
                                                            meta:resourcekey="lblQty"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="重量" HeaderText="重量" SortExpression="Weight" meta:resourcekey="Weight">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lbl_Weight" runat="server" Text='<%# GetPreferenceDigit(Eval("Weight").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="体积" HeaderText="体积" SortExpression="Volume" meta:resourcekey="Volume">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblVolume" runat="server" Text='<%# GetPreferenceDigit(Eval("Volume").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="货值" HeaderText="货值" SortExpression="Value" meta:resourcekey="Value">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblValue" runat="server" Text='<%# GetPreferenceDigit(Eval("Value").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="长" HeaderText="长" SortExpression="Length" meta:resourcekey="Length">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblLength" runat="server" Text='<%# GetPreferenceDigit(Eval("Length").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="宽" HeaderText="宽" SortExpression="Width" meta:resourcekey="Width">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblWidth" runat="server" Text='<%# GetPreferenceDigit(Eval("Width").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="高" HeaderText="高" SortExpression="Height" meta:resourcekey="Height">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblHeight" runat="server" Text='<%# GetPreferenceDigit(Eval("Height").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </td>
                            </tr>
                            <tr style="height: 30px;">
                                <td>
                                </td>
                            </tr>
                        </table>
                        <div style="margin-left: 10px">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td class="Result_01">
                                        总计：
                                    </td>
                                    <td class="Result_02">
                                        <table>
                                            <tr>
                                                <td style="margin-right: 20px;">
                                                    &nbsp; &nbsp;
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblSCTotal" runat="server" Text="数量:" class="label"></asp:Label>
                                                    <asp:Label ID="lblSCTotalQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblTotalWeight" runat="server" Text="重量:" class="label"></asp:Label><asp:Label
                                                        ID="lblTotalWeightText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblTotalVolume" runat="server" Text="体积:" class="label"></asp:Label><asp:Label
                                                        ID="lblTotalVolumeText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblTotalValue" runat="server" Text="货值:" class="label"></asp:Label><asp:Label
                                                        ID="lblTotalValueText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblTotalLength" runat="server" Text="长:" class="label"></asp:Label><asp:Label
                                                        ID="lblTotalLengthText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblTotalWidth" runat="server" Text="宽:" class="label"></asp:Label><asp:Label
                                                        ID="lblTotalWidthText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblTotalHeight" runat="server" Text="高:" class="label"></asp:Label><asp:Label
                                                        ID="lblTotalHeightText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td class="Result_03">
                                    </td>
                                </tr>
                                <tr style="height: 20px">
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
                <input type="hidden" id="hdnFrom" runat="server" />
                <input id="hdnFlag" runat="server" type="hidden" />
                <input id="hiddenFlag" runat="server" type="hidden" />
                <input id="hdnRtnValue" runat="server" type="hidden" value="1" />
                <input id="hdnWaveID" runat="server" type="hidden" />
                <input id="hdnContainerID" runat="server" type="hidden" />
                <input id="hdnOrdersID" runat="server" type="hidden" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div id="actionDiv" style="background-color: #FFFFFF; position: absolute; display: none;">
        <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPreAllocation" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnPreAllocation" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPreAllocation%>"
                        OnClientClick="blockScreen();" OnClick="lnkbtnPreAllocation_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnRevertPreAllocation" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnRevertPreAllocation" runat="server" Text="<%$Resources:ButtonResource,lnkbtnRevertPreAllocation%>"
                        OnClientClick="blockScreen();" OnClick="lnkbtnRevertPreAllocation_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnAllocation" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnAllocation" runat="server" Text="<%$Resources:ButtonResource,lnkbtnAllocation%>"
                        OnClientClick="blockScreen();" OnClick="lnkbtnAllocation_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnRevertAllocation" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnRevertAllocation" runat="server" Text="<%$Resources:ButtonResource,lnkbtnRevertAllocation%>"
                        OnClientClick="blockScreen();" OnClick="lnkbtnRevertAllocation_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnReleasePickTasks" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnReleasePickTasks" runat="server" Text="<%$Resources:ButtonResource,lnkbtnReleasePickTasks%>"
                        OnClientClick="blockScreen();" OnClick="lnkbtnReleasePickTasks_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnConfirmPicked" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnConfirmPicked" runat="server" Text="<%$Resources:ButtonResource,lnkbtnConfirmPicked%>"
                        OnClientClick="blockScreen();" OnClick="lnkbtnConfirmPicked_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnShipping" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnShipping" runat="server" Text="<%$Resources:ButtonResource,lnkbtnShipping%>"
                        OnClientClick="blockScreen();" OnClick="lnkbtnShipping_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnCloseOrder" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnCloseOrder" runat="server" Text="<%$Resources:ButtonResource,lnkbtnClose%>"
                        OnClientClick="blockScreen();" OnClick="lnkbtnClosed_Click"></asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
    <input type="hidden" id="hiddenReportFlag" />
    <div id="reportDiv" style="background-color: #FFFFFF; position: absolute; display: none;">
        <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu2">
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPrintPick" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnPrintPick" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintPick%>"
                        OnClick="lnkbtnPrintPickList_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnMergePrintPickList" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnMergePrintPickList" runat="server" Text="<%$Resources:ButtonResource,lnkbtnMergePrintPickList%>"
                        OnClick="lnkbtnMergePrintPickList_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPrintPickDivide" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnPrintPickDivide" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintPickDivide%>"
                        OnClick="lnkbtnPrintPickDivide_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnBatchOutboundList" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnBatchOutboundList" runat="server" Text="<%$Resources:ButtonResource,lnkbtnBatchOutboundList%>"
                        OnClick="lnkbtnBatchOutboundList_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnBatchShippingOrder" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnBatchShippingOrder" runat="server" Text="<%$Resources:ButtonResource,lnkbtnBatchShippingOrder%>"
                        OnClick="lnkbtnBatchShippingOrder_Click"></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPrintBatchPickAdvice" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnPrintBatchPickAdvice" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintBatchPickAdvice%>"
                        OnClick="lnkbtnPrintBatchPickAdvice_Click"></asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
	<!--
		hiddenDiv();
		hiddenReportDiv();
	//-->
</script>

